﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace MhAdmin.System.Entity.YYM
{
    /// <summary>
    /// 系统菜单表
    ///</summary>
    [SugarTable("sys_menu", TableDescription = "系统菜单表")]
    [Tenant(SqlsugarConst.DB_Default)]
    public class Sys_menu:BaseEntity
    {
        /// <summary>
        /// 备  注:菜单名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="menuname" ) ]
        public string? Menuname  { get; set;  }
     
        /// <summary>
        /// 备  注:父菜单Id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="parentid" ) ]
        public int? Parentid  { get; set;  }
     
        /// <summary>
        /// 备  注:菜单图标
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="icon" ) ]
        public string? Icon  { get; set;  } 
     
        /// <summary>
        /// 备  注:类型, 0:目录  1:页面  2:按钮
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="type" ) ]
        public int Type  { get; set;  } 
     
        /// <summary>
        /// 备  注:菜单Url(路由router)
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="linkurl" ) ]
        public string? Linkurl  { get; set;  } 
     
        /// <summary>
        /// 备  注:前端页面存放路径
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="viewpath" ) ]
        public string? Viewpath  { get; set;  } 
     
        /// <summary>
        /// 备  注:是否缓存页面 0:不缓存, 1:缓存
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="iskeepalive" ) ]
        public bool Iskeepalive  { get; set;  } 
     
        /// <summary>
        /// 备  注:是否显示
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="isshow" ) ]
        public bool Isshow  { get; set;  } 
     
        /// <summary>
        /// 备  注:是否外链
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="isexternal" ) ]
        public bool Isexternal  { get; set;  } 
     
        /// <summary>
        /// 备  注:是否内嵌
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="isembed" ) ]
        public bool Isembed  { get; set;  } 
     
        /// <summary>
        /// 备  注:重定向
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="redirect" ) ]
        public string? Redirect  { get; set;  } 
     
        /// <summary>
        /// 备  注:排序
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ordersort" ) ]
        public int Ordersort  { get; set;  } 
     
        
    

    }
    
}